home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / qstbats.zip / EXEBBS.BAT next >
DOS Batch File  |  1992-04-19  |  1KB  |  66 lines

  1. rem This is my EXEBBS.BAT file that loads from RUNDB.BAT.  It may differ a
  2. rem little from yours if you run FD or Bindley.
  3.  
  4. echo off
  5. cd \sbbs
  6.  
  7. rem This next area loads the bbs locally
  8.  
  9. if %1==local goto localsbbs
  10.  
  11. rem This statement loads BNU fossil driver.  If you don't run DB, then
  12. rem will place this in your autoexec.bat file and change it to: bnu /f
  13. rem I lock the baud rate, when Sbbs loads, to 38400 becasue I use a HST
  14. rem modem.
  15.  
  16. bnu /l0:38400,8n1 /f
  17.  
  18. rem This loads the bbs "spawn" fashion.  You must use the RUNDB.BAT and
  19. rem in your front end mailer, you must create the bbs file called
  20. rem SBBS.BAT by having your mailer make it with the command ECHO EXEBBS
  21. rem *B *P *T >SBBS.BAT.  This will make the file called SBBS.BAT that
  22. rem holds the information of the Baud Rate, Port, and Time of next
  23. rem Event and will pass it to SBBS when it loads.
  24.  
  25. bbs -N1 -B%1 -P%2 -T%3 -E0
  26. goto after_sbbs
  27.  
  28. :restart_sbbs
  29. bbs -R -N1 -E0
  30. goto after_sbbs
  31.  
  32. rem This loads your type 7 doors such as games or offline reader (if you
  33. rem use more than QMX) or Call Back Verifier.
  34.  
  35. :after_sbbs
  36. if errorlevel 60 goto ava
  37. if errorlevel 59 goto outside
  38. goto out
  39.  
  40. :ava
  41. d:
  42. cd\ava
  43. ava ava.cfg d:\sbbs\
  44. cd\sbbs
  45. goto restart_sbbs
  46.  
  47. :localsbbs
  48. cd\sbbs
  49. bbs -L -N1 -E0
  50. goto out
  51.  
  52. rem This is for a remote drop to dos.
  53.  
  54. :outside
  55. echo off
  56. ctty gate1 on
  57. cd\
  58. command.com
  59. cd\sbbs
  60. ctty con
  61. goto restart_sbbs
  62.  
  63. :finish
  64. cd\db
  65. rundb
  66.